﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Registrar.ascx.cs" Inherits="Tinkle.Mod.Registrar" %>
<div>
    <div id="container">
        <ul>
            <li>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                <asp:Label ID="lblErro" runat="server" Text=""></asp:Label>
            </li>
            <li>Nome:<asp:TextBox runat="server" ID="txtNome" /><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                runat="server" ErrorMessage="Informe o nome." ControlToValidate="txtNome" ForeColor="Red">*</asp:RequiredFieldValidator>
            </li>
            <li>Email:<asp:TextBox runat="server" ID="txtEmail" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                    Display="Dynamic" ErrorMessage="Email inválido." ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Informe o email."
                    ControlToValidate="txtEmail" ForeColor="Red">*</asp:RequiredFieldValidator></li>
            <li>Senha:<asp:TextBox runat="server" ID="txtSenha" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtSenha"
                    ErrorMessage="Informe a senha." ForeColor="Red" Display="Dynamic">*</asp:RequiredFieldValidator>
            </li>
            <li>Confirmar senha:<asp:TextBox runat="server" ID="txtConfirmaSenha" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtConfirmaSenha"
                    Display="Dynamic" ErrorMessage="Informe a confirmação da senha." ForeColor="Red">*</asp:RequiredFieldValidator>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtSenha"
                    ControlToValidate="txtConfirmaSenha" Display="Dynamic" ErrorMessage="Confirmação inválida."
                    ForeColor="Red">*</asp:CompareValidator>
            </li>
            <li>
                <asp:Button Text="Cadastrar" runat="server" ID="btnCadastrar" Width="200px" OnClick="btnCadastrar_Click" />
            </li>
        </ul>
    </div>
</div>
